/**
 * 
 */
package com.google.code.onlineshopping4j.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author TelmilaJ
 *
 */
@Entity
@Table(name="users")
public class ApplicationUser extends BaseModel implements Serializable {
	
	private static final long serialVersionUID = -2324594548388581441L;

	@Column(name = "user_name", nullable=false)
	private String username;

	@Column(name = "user_password", nullable=false)
	private String password;
	
	@Column(name = "user_role", nullable=false)
	private ROLE role;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public ROLE getRole() {
		return role;
	}

	public void setRole(ROLE role) {
		this.role = role;
	}
}
